#! /usr/bin/python
# coding: utf-8

from Tkinter import *

root = Tk()
cv = Canvas(root, bg='white')

txt = cv.create_text((200, 100), text='Hello Text\nNi Hao', justify='center', anchor=E, fill='red')

cv.select_from(txt, 2)
cv.select_to(txt, 5)

cv.pack()

root.mainloop()
